<?php
	// -----------   Page Vars    ----------
	$to_root = '';
	$authorized = null;
	$menu_selected = -1;
	
	//  ---- init
	include($to_root.'_classes/init.php');
		
	/* ========   INSERT CODE HERE   ======== */

	if($GLOBALS['User']->logout()){
		if(isset($_GET['action']) && $_GET['action'] == 'force') header('Location: login.php?msg=logout_forced');
		else header('Location: login.php?msg=logout_success');
		
	} else {
		header('Location: login.php?msg=logout_error');
	}
?>